<h3>BÀI VIẾT VỀ MÓN ĂN (<?php echo count($items)?>)</h3>
<?php
	global $bi;
	
	foreach ($items as $item) {
?>
	<div class="comment">
		<div style="text-align:center">	    		
			<a href="index.php?view&type=item&id=<?php echo $item->getItemID()?>">                            	
            	<img src="<?php echo $ubi['SERVER']['THUMBNAIL_PATH'];?>/<?php echo $imgItems[$item->getItemID()]?>" class="smallAvatar" />
            </a>			                                 
		</div>							
	</div>
	<div class="right">
		<div class="date">Thứ Hai, 12/12/2010</div>
		<div class="title_post">
			<a href="index.php?view&type=item&id=<?php echo $item->getItemID()?>">
				<?php echo $item->getItem()?>
			</a>
		</div>
		<p>
	        <?php echo substr(strip_tags($item->getDescription()), 0, $ubi['SITE']['SHORT_DESCRIPTION']);?>
	        <a href="index.php?view&type=item&id=<?php echo $item->getItemID()?>">
	        	Xem tiếp...
	        </a>
		</p>
	</div>
	<div style="clear:both"></div>	
<?php 		
	} 
?>   
<div class="page">
	Trang : 
	<?php
		for ($i = 0; $i < $numberOfItemPages; $i++) {
			if ($i + 1 != $getVars['page']) {
				?> <a class="a_cursor" onclick="$.viewPageItem('<?php echo $i + 1 ?>')"><?php echo $i + 1 ?></a>&nbsp;
				<?php
			} else {
				?> <b><a class="a_cursor" onclick="$.viewPageItem('<?php echo $i + 1 ?>')"><?php echo $i + 1 ?></a></b>&nbsp;
				<?php
			}
		}
	?>
</div>